package com.shuwen.gcdj.mapper.mysql;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.shuwen.gcdj.bean.inspectionitem.requset.InspectionItemPageReq;
import com.shuwen.gcdj.bean.inspectionitem.requset.InspectionPageReq;
import com.shuwen.gcdj.bean.inspectionitem.response.InspectionItemPageResp;
import com.shuwen.gcdj.bean.inspectionitem.response.InspectionPageResp;
import com.shuwen.gcdj.bean.structure.response.InspectionItemTemplateResp;
import com.shuwen.gcdj.entity.StrategyInspectionitemtemplate;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author :yys
 * @date : 2023/5/12 10:46
 */
@Mapper
public interface StrategyInspectionitemtemplateMapper extends BaseMapper<StrategyInspectionitemtemplate> {

    List<InspectionItemTemplateResp> getAllList();

    IPage<InspectionItemPageResp> getPage(Page<InspectionItemPageResp> page,@Param("req") InspectionItemPageReq req);

    IPage<InspectionPageResp> getinspectionitempagebytemplate(Page<InspectionPageResp> page,
                                                              @Param("req") InspectionPageReq req,
                                                              @Param("resultName")String resultName,
                                                              @Param("methodName")String methodName);

    List<InspectionPageResp> getinspectionitembytemplate(@Param("req") InspectionPageReq req,
                                                         @Param("resultName")String resultName,
                                                         @Param("methodName")String methodName);

    List<InspectionItemPageResp> getinspectionitemtamplate();

    //查询检查项模板
    List<InspectionItemTemplateResp> getListAsync(@Param("tempIds")List<String> tempIds);

}
